package mission011;

import java.util.ArrayList;
import java.util.Collections;
import java.util.Random;
import java.util.List;


/**
 * @author Admin
 * @create 2019/10/23
 * @since 1.0.0
 */
public class People {
    private String name;

    public String getName() {
        return name;
    }

    public People(String name){
        this.name=name;
    }
    public static void main(String[] args) {
        List<String> a=new ArrayList<>();
        Collections.addAll(
                a,"俄罗斯","沙特","埃及"," 乌拉圭"," 葡萄牙",
                " 西班牙"," 摩洛哥 ","伊朗", "法国"," 澳大利亚",
                " 秘鲁 ","丹麦"," 阿根廷 ","冰岛"," 克罗地亚","尼日利亚 ",
                "巴西 ","瑞士 ","哥斯达黎加 ","塞尔维亚"," 德国",
                "墨西哥 ","瑞典"," 韩国"," 比利时"," 巴拿马"," 突尼斯",
                " 英格兰"," 波兰"," 塞内加尔"," 哥伦比亚"," 日本");

        Random r=new Random();
        String b;
        for(int i=1;i<=8;i++){
            System.out.println("\n"+"第"+i+"组");
            for(int j=0;j<4;j++){
                b=a.get(r.nextInt(a.size()));
                System.out.print(" "+b);
                a.remove(b);
            }
        }
    }
}

